package com.git.hui.yinshua.web.action.tool;

import com.git.hui.yinshua.common.email.EmailWrapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YiHui
 * @date 2024/6/7
 */
@RestController
public class EmailController {

    @GetMapping(path = "email")
    public static String send(String to, String title, String content) {
        EmailWrapper.sendMail(title, to, content);
        return "over";
    }

}
